<?php
class SqlCondition extends SqlQuery
{
    public function Add($key, $value, $type, $list_item_type = null)
    {
        $out = parent::Add($key, $value, $type, $list_item_type);
        $sql = array();
        foreach ($this->params as $key => $param)
        {
            $sql[] = "$key = @$key";
        }
        $this->sql = implode(' AND ', $sql);
        return $out;
    }
}
?>
